package thesis.database;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;



/**
* This class use for Service object.
* @author La Duy Khang - Dinh Tran Ly Hung -Tang Thi Phuong Linh 
* @version 1.0
*/
public class Service implements Serializable{
	private int id;
	private int customerId;
	private int taxiId;
	private double distance;
	private Timestamp beginTime;
	private Timestamp endTime;
	private String beginLatitude;
	private String bedginLongitude;
	private String endLatitude;
	private String endLongitude;
	private String beginAddress;
	private String endAddress;
	private double price;
	private Timestamp acceptTime;
	private int status;

	public Service(int id, int customerId, int taxiId, double distance,
			Timestamp beginTime, Timestamp endTime, String beginLongitude,
			String beginLatitude, String endLongitude, String endLatitude,
			String beginAddress, String endAddress, double price,
			Timestamp acceptTime, int status) {
		this.id = id;
		this.customerId = customerId;
		this.taxiId = taxiId;
		this.distance = distance;
		this.beginTime = beginTime;
		this.endTime = endTime;
		this.bedginLongitude = beginLongitude;
		this.beginLatitude = beginLatitude;
		this.endLongitude = endLongitude;
		this.endLatitude = endLatitude;
		this.beginAddress = beginAddress;
		this.endAddress = endAddress;
		this.price = price;
		this.acceptTime = acceptTime;
		this.status = status;

	}

	public Service() {
		this.id = -1;
		this.customerId = -1;
		this.taxiId = -1;
		this.distance = -1.0;
		this.beginTime = new Timestamp((new Date().getTime()));
		this.endTime = new Timestamp((new Date().getTime()));
		this.bedginLongitude = "";
		this.beginLatitude = "";
		this.endLongitude = "";
		this.endLatitude = "";
		this.beginAddress = "";
		this.endAddress = "";
		this.price = -1.0;
		this.acceptTime = new Timestamp((new Date().getTime()));
		this.status = -1;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getCustomerId() {
		return customerId;
	}

	public void setCustomerId(int customerId) {
		this.customerId = customerId;
	}

	public int getTaxiId() {
		return taxiId;
	}

	public void setTaxiId(int taxiId) {
		this.taxiId = taxiId;
	}

	public double getDistance() {
		return distance;
	}

	public void setDistance(double distance) {
		this.distance = distance;
	}

	public Timestamp getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Timestamp beginTime) {
		this.beginTime = beginTime;
	}

	public Timestamp getEndTime() {
		return endTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}

	public String getBeginLatitude() {
		return beginLatitude;
	}

	public void setBeginLatitude(String beginLatitude) {
		this.beginLatitude = beginLatitude;
	}

	public String getBeginLongitude() {
		return bedginLongitude;
	}

	public void setBeginLongitude(String bedginLongitude) {
		this.bedginLongitude = bedginLongitude;
	}

	public String getEndLatitude() {
		return endLatitude;
	}

	public void setEndLatitude(String endLatitude) {
		this.endLatitude = endLatitude;
	}

	public String getEndLongitude() {
		return endLongitude;
	}

	public void setEndLongitude(String endLongitude) {
		this.endLongitude = endLongitude;
	}

	public String getBeginAddress() {
		return beginAddress;
	}

	public void setBeginAddress(String beginAddress) {
		this.beginAddress = beginAddress;
	}

	public String getEndAddress() {
		return endAddress;
	}

	public void setEndAddress(String endAddress) {
		this.endAddress = endAddress;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public Timestamp getAcceptTime() {
		return acceptTime;
	}

	public void setAcceptTime(Timestamp acceptTime) {
		this.acceptTime = acceptTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}
